package com.IntelligentCommunity.deploy.controller;

import com.IntelligentCommunity.common.core.domain.R;
import com.IntelligentCommunity.deploy.service.IWebSocketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author 美国五星上将麦克阿瑟
 */
@RestController
@RequestMapping("/ws")
public class WebSocketController {

    @Autowired
    private IWebSocketService webSocketService;

    @GetMapping("/sendWran")
    public R sendWran(@RequestParam("message") String message) {
        webSocketService.sendWran(message);
        return R.ok();
    }

}
